package day1208_3;
class Customer extends  Thread{
    public void run() {
        String name=Thread.currentThread().getName();
        System.out.println(name+"买火车票");
    }
}


//day1208.T1
public class T1 {
    public static void main(String[] args) {
        Customer  zs=new Customer();
        zs.start();

        Customer lisi=new Customer();
        lisi.setName("李四线程");
        lisi.setPriority(10);   //Priority优先级(10优先级最高)
        lisi.start();
    }
}




